<template>
  <div class="goods-desc">
  <myheader titleName='图文介绍'></myheader>
  <div>
    <h3 class="desc-title">{{goodsIntro.title}}</h3>
    <div class="desc-content" v-html='goodsIntro.content'></div>
  </div>
  </div>
</template>
<script>
import myheader from '@/components/myheader'
import {getIntro} from '@/api'
export default {
  components: {
    myheader
  },
  data () {
    return {
      goodsIntro: {}
    }
  },
  created () {
    getIntro(this.$route.params.id)
      .then(res => {
        // console.log(res)
        this.goodsIntro = res.message[0]
      })
  }
}
</script>
<style lang="scss" scoped>
img {
    display: block;
}

.goods-desc {
  margin-top: 50px;
  h3 {
    font-weight: bold;
    color: #26a2ff;
    font-size: 16px;
    margin-bottom: 5px;
  }
  .desc-content {
    font-size: 14px;
  }
}

</style>
